var DEBUG = true; //正式服务器设置为false，测试服务器（本地起服务）设置为true
var PLATFORM = 'node-app'; // 'robot'表示为robot项目, 'know'表示为欧淘学项目

var CONSTS = {

    APP: {
        TITLE: PLATFORM,
        //PORT: DEBUG ? 8086 : 8086,
        PORT: PLATFORM == 'node-app' ? 8086: 8088, 
        SSLPORT: DEBUG ? 8443 : 443,
        STATICPATH: PLATFORM == 'know' ? '../know_pc/' : '../robot_pc/',
        LOGPATH: '../logs/',
        SOURCEDIST: 'upload/',
        TIMEOUT: '2019-12-30 13:10:00',
    },

    DATABASE: {
        NAME: PLATFORM,
        HOST: DEBUG?'59.110.136.247':'127.0.0.1',
        PORT: '27017',
        USER: 'lzc',
        PASS: 'lzc0401',
        AUTORECONNECT: true,
        POOLSIZE: 10,
    },

    COOKIE: {
        COOKIE_CODE: 'SESSION_TOKEN_CODE',
        MAXAGE: 365 * 24 * 60 * 1000 , //cookie超时时间 分钟*1000
    },
    
};

module.exports = CONSTS;
